package com.ssm.sfzy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author yang "每天都要学习呀"
 * @Date 2024 04 01 10 40
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ConsultProblem {

    private Integer id;
    private String problemTitle;
    private String problemText;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    private String userId;
}
